// 问题枚举
export enum QUESTION_TYPE {
  TEXT = 'text',
  TEXTAREA = 'textarea',
  RADIO = 'radio',
  CHECKBOX = 'checkbox',
  BINARY_CHOICE = 'binary-choice',
  RADIO_STAR = 'radio-star',
  RADIO_NPS = 'radio-nps',
  VOTE = 'vote',
  POSITION = 'position',
  TEMPERATURE = 'temperature',
  TABLE = 'table',
  SCAN_CODE = 'scan_code',
  SELECT = 'select',
  NUMBER = 'number',
  MONEY = 'money',
  DEPARTMENT = 'department',
  MEMBER = 'member',
  DATE = 'date',
  TIME = 'time',
  DURATION = 'duration',
  ADDRESS = 'address',
  PROVINCE = 'province',
  LOCATION = 'location',
  PHONE = 'phone',
  WECHAT = 'wechat',
  EMAIL = 'email',
  NAME = 'name',
  SEX = 'sex',
  AGE = 'age',
  IDNO = 'idno',
  BIRTHDAY = 'birthday',
  CLOTHING_SIZE = 'clothing_size',
  RELATIONS = 'relations',
  IMAGE = 'image',
  UPLOAD = 'upload',
}

// 问题类型标签映射对象
export const typeTagLabels: Record<QUESTION_TYPE, string> = {
  [QUESTION_TYPE.TEXT]: '单行文本',
  [QUESTION_TYPE.TEXTAREA]: '多行文本',
  [QUESTION_TYPE.RADIO]: '单选',
  [QUESTION_TYPE.CHECKBOX]: '多选',
  [QUESTION_TYPE.BINARY_CHOICE]: '判断',
  [QUESTION_TYPE.RADIO_STAR]: '评分',
  [QUESTION_TYPE.RADIO_NPS]: 'NPS评分',
  [QUESTION_TYPE.VOTE]: '投票',
  [QUESTION_TYPE.POSITION]: '地理位置',
  [QUESTION_TYPE.TEMPERATURE]: '体温',
  [QUESTION_TYPE.TABLE]: '表格题',
  [QUESTION_TYPE.SCAN_CODE]: '扫码录入',
  [QUESTION_TYPE.SELECT]: '下拉选择',
  [QUESTION_TYPE.NUMBER]: '数字',
  [QUESTION_TYPE.MONEY]: '金额',
  [QUESTION_TYPE.DEPARTMENT]: '部门',
  [QUESTION_TYPE.MEMBER]: '成员',
  [QUESTION_TYPE.DATE]: '日期',
  [QUESTION_TYPE.TIME]: '时间',
  [QUESTION_TYPE.DURATION]: '时长',
  [QUESTION_TYPE.ADDRESS]: '地址',
  [QUESTION_TYPE.PROVINCE]: '省份',
  [QUESTION_TYPE.LOCATION]: '自动定位',
  [QUESTION_TYPE.PHONE]: '手机号',
  [QUESTION_TYPE.WECHAT]: '微信号',
  [QUESTION_TYPE.EMAIL]: '邮箱',
  [QUESTION_TYPE.NAME]: '姓名',
  [QUESTION_TYPE.SEX]: '性别',
  [QUESTION_TYPE.AGE]: '年龄',
  [QUESTION_TYPE.IDNO]: '身份证号',
  [QUESTION_TYPE.BIRTHDAY]: '出生年月',
  [QUESTION_TYPE.CLOTHING_SIZE]: '服装尺码',
  [QUESTION_TYPE.RELATIONS]: '社会关系',
  [QUESTION_TYPE.IMAGE]: '图片',
  [QUESTION_TYPE.UPLOAD]: '附件',
}

// 输入类问题
export const INPUT = [
  QUESTION_TYPE.TEXT,
  QUESTION_TYPE.TEXTAREA
]

// 选择类问题分类
export const NORMAL_CHOICES =  [
  QUESTION_TYPE.RADIO,
  QUESTION_TYPE.CHECKBOX
]

// 选择类问题分类
export const CHOICES =  [
  QUESTION_TYPE.RADIO,
  QUESTION_TYPE.CHECKBOX,
  QUESTION_TYPE.BINARY_CHOICE,
  QUESTION_TYPE.VOTE
]

// 评分题问题分类
export const RATES = [
  QUESTION_TYPE.RADIO_STAR,
  QUESTION_TYPE.RADIO_NPS
]

